<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<title>登陆界面</title>
		
		<meta charset="utf-8"/>
		<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
		<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css"/>
		<link rel="stylesheet" type="text/css" href="/css/style.css"/>
		<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css"/>
		<link rel="stylesheet" type="text/css" href="/css/login_screen.css">
		<style type="text/css">
		body
		{
			padding-top: 60px;
			padding-bottom: 40px;
		}
		</style>
		<script type="text/javascript" src="/js/jquery.min.js"></script>
		<script src="/js/app.js"></script>
		<script type="text/javascript">
			function checkInput()
			{
				var email=document.getElementById("email");
				if (email.value.length==0){
					alert("请输入邮箱")
					return false
				}
				var pwd=document.getElementById("pwd");
				if (pwd.value.length==0){
					alert("请输入密码")
					return false
				}
				return true
			}
			function backHome()
			{
				window.location.href="/";
				return false;
			}
			function hide_error(){
				$("div#error").hide();
			};
		</script>
	</head>
	<body style="background: url(/image/tt2bg.png) repeat;">
		<center>
		<div class="container" >
			<div class="row-fluid">
				<div class="span12">
					<div class="login">
						<div class="container">
							<div class="login-area" style="width:400px; color:white;">
								<h1 >帐号登录</h1>
								<form action="/action/login" method="POST" class="form-horizontal" role="form">
									<div class="form-group">
										<span for="inputEmail3" class="col-sm-2 control-label">邮箱</span>
										<div class="col-sm-10">
											<input type="email" name="email" class="form-control" id="inputEmail3" placeholder="Email"/>
										</div>
									</div>
									<div class="form-group">
										<span for="inputPassword3" class="col-sm-2 control-label">密码</span>
										<div class="col-sm-10">
											<input type="password" name="pwd" class="form-control" id="inputPassword3" placeholder="Password"/>
										</div>
									</div>
									<div class="form-group">
										<div class="col-sm-offset-2 col-sm-3">
											<span>
											<div class="checkbox">
												<input name="autoLogin" type="checkbox" placeholder=""/><p>记住我</p>
											</div>
											</span>
										</div>
									</div>
									<div class="form-group">
										<div class="col-sm-offset-2 col-sm-5">
											<span><button type="submit"  class="col-sm-12 btn btn-default" onclick="return checkInput();">登录</button></span>
										</div>
										<div class="col-sm-5">
											<span><button id="btn_register" type="button" class="col-sm-12 btn btn-default" onclick="javascript:window.location.href='/register';">注册</button></span>
										</div>
									</div>
									<div id="error" class="alert alert-danger {{.error_hide}}">
										<button id="btn_err" type="button" class="close" data-dismiss="alert" aria-hidden="true" onclick="hide_error();">&times;</button>
										<strong>登录失败!</strong><p id="err_info">{{.error_infoamation}}</p>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		</center>
	</body>
</html>